package com.yeyks.consumer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yeyks.consumer.dal.domain.UserWxidRelation;
import com.yeyks.consumer.param.CashOutOrder.CashOutOrderBindWxParam;
import com.yeyks.consumer.vo.CashOutOrder.CashOutOrderIsBindWxVo;


/**
 * <p>
 * 用户提现微信关系表 服务类
 * </p>
 *
 * @author yun
 * @since 2019-12-03
 */
public interface UserWxidRelationService extends IService<UserWxidRelation> {

    /**
     * 根据用户id查询
     *
     * @param userId
     * @return
     */
    UserWxidRelation getByUserId(Integer userId);

    /**
     * 是否绑定微信
     *
     * @param userId
     * @return
     */
    CashOutOrderIsBindWxVo isBindWx(Integer userId);

    //绑定微信
    Boolean bindWx(CashOutOrderBindWxParam param);
}
